/**
 * 版权所有@北京博创联动科技有限公司。未经许可，不得擅自复制、传播
 */
package com.uptech.homer.beans;


/**
 * 警报信息
 *
 * @author lei
 */
public class AlarmInfo extends CanInfo {
    private static final long serialVersionUID = 1L;

    private int level;

    private String code;

    public AlarmInfo(String key,
                     String value,
                     int level) {
        super(key, value);

        this.level = level;
    }

    public AlarmInfo(String key,
                     String value,
                     int level,
                     String code) {
        super(key, value);

        this.level = level;
        this.code = code;
    }

    /**
     * @return the level
     */
    public int getLevel() {
        return level;
    }

    /**
     * @param level the level to set
     */
    public void setLevel(int level) {
        this.level = level;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
